import { IPSTextBox } from './ipstext-box';
import { PSTextEditorImpl } from './pstext-editor-impl';

export class PSTextBoxImpl extends PSTextEditorImpl implements IPSTextBox {
  get maxValue(): number {
    return this.M.maxValue;
  }

  get minValue(): number {
    return this.M.minValue;
  }

  get precision(): number {
    return this.M.precision;
  }

  get cls(): string {
    return 'PSTextBoxImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.editor.IPSNumberEditor' || cls == 'control.editor.IPSTextBox') return true;
    return super.instanceof(cls);
  }
}
